﻿using UnityEngine;

public class WallBlockReposition
{
    private GameObjectTransform lastBlock;
    private GameObjectTransform block;

    public WallBlockReposition(GameObjectTransform _block, GameObjectTransform _lastBlock)
    {
        block = _block;
        lastBlock = _lastBlock;
    }

    public void resetPositionWithHeight(float height)
    {
        Vector3 resetPosition = Vector3.zero;
        
        resetPosition.x = lastBlock.getPosition().x + 1.0f;
        resetPosition.y = height;

        block.setPosition(resetPosition);
    }
}

